<!DOCTYPE html>
<html lang="en"xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生列表页</title>
  <script th:src="@{/webjars/jquery/3.2.1/dist/jquery.min.js}"> </script>
  <script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
  <link rel="stylesheet" th:href="@{webjars/bootstrap/4.3.1/css/bootstrap.min.css}"/>
</head>
<body>

<div class="container">
  <table class="table-striped" style="width: 100%;">
    <tr>
      <th>No.</th>
      <th>stuId</th>
      <th>stuName</th>
      <th>stuSex</th>
      <th>stuBirthday</th>
      <th>stuAge</th>
    </tr>
    <tr th:each="stu,statu: ${stuList}">
      <td th:text="${statu.count}"></td>
      <td th:text="${stu.stuId}"></td>
      <td th:text="${stu.stuName}"></td>
      <td th:text="${stu.stuSex}"></td>
      <td th:text="${stu.stuBirthday} ==null ?'保密':${#dates.format(stu.stuBirthday,'yyyy-MM-ss')}"></td>
      <td th:text="${stu.stuAge}"></td>
    </tr>

<!--<p th:text="${stuList}"></p>-->
  </table>
</div>
</body>
</html>